package com.qh.book.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/")
public class TestController {

	@GetMapping("/test")
	public ModelAndView test() {
		
	
		return new ModelAndView("/index");
	}
	
	
	@GetMapping("/shop_index")
	public ModelAndView shop_index() {
		
	
		return new ModelAndView("/shop_index");
	}
	
	@GetMapping("/qq")
	public ModelAndView Products() {
		
	
		return new ModelAndView("/qq");
	}
	
	
	@GetMapping("/add_product")
	public ModelAndView add_product() {
		
	
		return new ModelAndView("/add_product");
	}
}
